package main

import "fmt"

func main() {
	ch := make(chan int, 3)
	var writech chan<- int = ch

	var readch <-chan int = ch

	writech <- 10
	//a:=<- writech//不能接收变量

	//readch<-10//不能写变量
	a := <-readch
	fmt.Println(a)
}
